package com.ruoyi.loss.domain.bo;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 自定义字段业务对象 lsh_well_custom_fields
 *
 * @author yangyong
 * @date 2023-12-25
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class WellCustomFieldsBo extends BaseEntity {

    /**
     * 主键Id
     */
    @NotNull(message = "主键Id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 全局默认标识（0是 1否）
     */
    private String isGlobal;

    /**
     * 井号
     */
    private String wellNo;

    /**
     * 井属性
     */
    @NotNull(message = "井属性不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer wellAttribute;

    /**
     * 字段中文
     */
    @NotBlank(message = "字段中文不能为空", groups = { AddGroup.class, EditGroup.class })
    private String fieldCn;

    /**
     * 字段英文
     */
    @NotBlank(message = "字段英文不能为空", groups = { AddGroup.class, EditGroup.class })
    private String fieldEn;

    /**
     * 字段值
     */
    private String fieldVal;

    /**
     * 状态（0正常 1停用）
     */
//    @NotBlank(message = "状态（0正常 1停用）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 备注
     */
    private String remark;


}
